﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ProviderCarPolicyInfo.aspx.cs" Inherits="Provider_CarInsurance_ProviderCarPolicyInfo" %>

<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
  <script src="../../includes/ValidationError.js" type="text/javascript"></script>
  <script src="../../includes/ValidationEffect.js" type="text/javascript"></script>
    <div class="provider_inner">
        <h1>
            Add/Edit Car Policy Info
            <asp:Label ID="lblProviderCarPolicyInfoId" runat="server" Visible="false" Text="0"></asp:Label></h1>
        <fieldset>
        <dl>
                <dt>
                    <label>
                        Policy Info Title</label></dt>
                <dd>
                    <asp:TextBox ID="txtPolicyInfoTitle" runat="server" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPolicyInfoTitle" runat="server" ControlToValidate="txtPolicyInfoTitle"
                        ErrorMessage="Enter policy info title." Display="Dynamic" ValidationGroup="CarPolicyInfo"></asp:RequiredFieldValidator>
                  
                </dd>
            </dl>
            <%--<dl>
                <dt>
                    <label>
                        Personal Accident Limit</label></dt>
                <dd>
                    <asp:TextBox ID="txtPersonalAccidentLimit" runat="server" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPersonalAccidentLimit" runat="server" ControlToValidate="txtPersonalAccidentLimit"
                        ErrorMessage="Enter personal accident limit." Display="Dynamic" ValidationGroup="CarPolicyInfo"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revPersonalAccidentLimit" runat="server" ControlToValidate="txtPersonalAccidentLimit"
                        ErrorMessage="Personal accident limit value is not valid." ValidationGroup="CarPolicyInfo"
                        ValidationExpression="^-[0-9]+$|^[0-9]+$"></asp:RegularExpressionValidator>
                </dd>
            </dl>--%>
            <dl>
                <dt>
                    <label>
                        Windscreen Excess</label></dt>
                <dd>
                    <asp:TextBox ID="txtWindscreenAccess" runat="server" Width="150px"></asp:TextBox>+
                    GST
                    <asp:RequiredFieldValidator ID="rfvPromoDescription" runat="server" ControlToValidate="txtWindscreenAccess"
                        ErrorMessage="Enter windscreen access." Display="Dynamic" ValidationGroup="CarPolicyInfo"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revWindscreenAccess" runat="server" ControlToValidate="txtWindscreenAccess"
                        ErrorMessage="Windscreen Access value is not valid." ValidationGroup="CarPolicyInfo"
                        ValidationExpression="^-[0-9]+$|^[0-9]+$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Towing Charges</label></dt>
                <dd>
                    <asp:TextBox ID="txtTowingCharges" runat="server" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvTowingCharges" runat="server" ControlToValidate="txtTowingCharges"
                        ErrorMessage="Enter Towing Charges." Display="Dynamic" ValidationGroup="CarPolicyInfo"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revTowingCharges" runat="server" ControlToValidate="txtTowingCharges"
                        ErrorMessage="Towing Charges value is not valid." ValidationGroup="CarPolicyInfo"
                        ValidationExpression="^-[0-9]+$|^[0-9]+$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            
            <dl>
                <dt>
                    <label>
                        Quote Expiry Days</label></dt>
                <dd>
                    <asp:TextBox ID="txtExpiry" runat="server" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvExpiry" runat="server" ControlToValidate="txtExpiry"
                        ErrorMessage="Enter Expiry Days." Display="Dynamic" ValidationGroup="CarPolicyInfo"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revExpiry" runat="server" ControlToValidate="txtExpiry"
                        ErrorMessage="Expiry days value is not valid." ValidationGroup="CarPolicyInfo"
                        ValidationExpression="^-[0-9]+$|^[0-9]+$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Cancellation Penalty</label></dt>
                <dd>
                    <asp:TextBox ID="txtCancellationPenalty" runat="server" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCancellationPenalty" runat="server" ControlToValidate="txtCancellationPenalty"
                        ErrorMessage="Enter Cancellation Penalty." Display="Dynamic" ValidationGroup="CarPolicyInfo"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revCancellationPenalty" runat="server" ControlToValidate="txtCancellationPenalty"
                        ErrorMessage="Cancellation Penalty value is not valid." ValidationGroup="CarPolicyInfo"
                        ValidationExpression="^-[0-9]+$|^[0-9]+$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Status</label></dt>
                <dd>
                    <asp:CheckBox ID="chkStatus" runat="server" />
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Auth Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code." ValidationGroup="CarPolicyInfo"></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" ImageUrl="~/Provider/images/buttons/back1.gif"
                OnClick="ibtBack_Click" />
            <asp:ImageButton ID="ibtSubmit" CssClass="float_btn" runat="server" ImageUrl="~/Provider/images/buttons/submit1.gif"
                OnClick="btnSubmit_Click" ValidationGroup="CarPolicyInfo" />
            <asp:ImageButton ID="btnNew" CssClass="floatnext_btn" runat="server" ImageUrl="~/Provider/images/buttons/new1.gif"
                OnClick="btnClearForm_Click" />
            <asp:ImageButton ID="btnDelete" CssClass="floatnext_btn" runat="server" OnClientClick="return confirm('Are you sure you want to remove this record?');"
                ImageUrl="~/Provider/images/buttons/delete1.gif" OnClick="btnDelete_Click" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg"></asp:Label>
    </div>
     
</asp:Content>
